package com.shop.shopcommon.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

@Getter
public enum DeliveryType {
    DELIVERY(1,"快递"),
    SELF_DELIVERY(0,"自提");
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String desc;

    DeliveryType(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
